package com.tbit.uqbike.webmanager.dao.core;

import com.tbit.uqbike.object.pojo.AdaPayConfig;
import com.tbit.uqbike.object.pojo.UserDivide;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @ClassName AdaPayConfig
 * @Description
 * @date 2021/10/21 14:43
 * @Version 1.0
 */
public interface AdaPayConfigDao {
    AdaPayConfig getInfoByAccountId(Integer accountId);

    Integer addAdaPayConfig(AdaPayConfig adaPayConfig);

    Integer addRatio(UserDivide userDivide);

    Integer upRatioState(Map<String, Object> map);

    List<UserDivide> getByAccountId(Map<String, Object> map);

    UserDivide getRatioInfoById(Map<String, Object> map);

    Integer delRatioInfo(Integer accountId);

    /**
     * 查询所有品牌的汇付配置
     *
     * @return
     */
    List<AdaPayConfig> getAll();

    AdaPayConfig getInfoByAccountIdNew(AdaPayConfig adaPayConfig);

    /**
     * 获取品牌汇付配置
     * @param brandId 品牌id
     * @return
     */
    AdaPayConfig getByBrandId(@Param("brandId") Integer brandId);
}
